import { register } from "../../utils/Graphic"
import { BasePointEntity } from "./common/BasePointEntity"

export class PointEntity extends BasePointEntity{
  /**
   * 获取实际绘制的实体
   *
   * @readonly
   * @memberof PointEntity
   */
  get entityGraphic() {
    return this._entity.point
  }

  _mountedHook() {
    let attr = {
      id: this.uuid,
      name: this.name,
      position: this.position,
      point: this.style
    }
    this._entity = new Cesium.Entity(attr)
  }
}

// 注册下
register('point', PointEntity)